package com.card.client.entry;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class CreditCardBill implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
	private Long id;
	
	@Persistent
	private String item;
	
	@Persistent
	private Date lastRePayDate;
	
	@Persistent
	private Date rePayDate;
	
	@Persistent
	private int minRePay;
	
	@Persistent
	private int actualRePay;
	
	@Persistent
	private int overAmount;
	
	@Persistent
	private int interest;
	
	@Persistent
	private int overCost;
	
	@Persistent
	private int excess;
	
	@Persistent
	private int takeAmount;
	
	@Persistent
	private Date takeDate;
	
	@Persistent
	private String financeMonth;
	
	public static String[] title = {"编号", "卡名称", "到期日", "还款日", "最低额", "实际额", "本期费用", "可用额"};
	
	public CreditCardBill(){
		this.item = "";
		this.lastRePayDate = new Date();
		this.rePayDate = new Date();
		this.minRePay = 0;
		this.actualRePay = 0;
		this.overAmount = 0;
		this.interest = 0;
		this.overCost = 0;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public Date getLastRePayDate() {
		return lastRePayDate;
	}

	public void setLastRePayDate(Date lastRePayDate) {
		this.lastRePayDate = lastRePayDate;
	}

	public Date getRePayDate() {
		return rePayDate;
	}

	public void setRePayDate(Date rePayDate) {
		this.rePayDate = rePayDate;
	}

	public int getMinRePay() {
		return minRePay;
	}

	public void setMinRePay(int minRePay) {
		this.minRePay = minRePay;
	}

	public int getActualRePay() {
		return actualRePay;
	}

	public void setActualRePay(int actualRePay) {
		this.actualRePay = actualRePay;
	}

	public int getOverAmount() {
		return overAmount;
	}

	public void setOverAmount(int overAmount) {
		this.overAmount = overAmount;
	}

	public int getInterest() {
		return interest;
	}

	public void setInterest(int interest) {
		this.interest = interest;
	}

	public int getOverCost() {
		return overCost;
	}

	public void setOverCost(int overCost) {
		this.overCost = overCost;
	}

	public int getExcess() {
		return excess;
	}

	public void setExcess(int excess) {
		this.excess = excess;
	}

	public String getFinanceMonth() {
		return financeMonth;
	}

	public void setFinanceMonth(String financeMonth) {
		this.financeMonth = financeMonth;
	}

	public int getTakeAmount() {
		return takeAmount;
	}

	public void setTakeAmount(int takeAmount) {
		this.takeAmount = takeAmount;
	}

	public Date getTakeDate() {
		return takeDate;
	}

	public void setTakeDate(Date takeDate) {
		this.takeDate = takeDate;
	}
}
